import React from './react.js';
import ReactDOM from './react-dom.js';

let element = <h1 style= {
    {
        color: 'red'
    }
}><span>1</span><span>2</span><span>3</span></h1>


ReactDOM.render(
    element,
    document.getElementById('root')
)

console.log(element)

/**
 * React元素或者成为虚拟DOM
 * $$typeof: Symbol(react.element)
 * key: null
 * props: {style: 'color: red', children: '1'}
 * ref: null
 * type: "h1"
 *
 */
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
